package com.ruoyi.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 编码生成规则组成对象 sys_auto_code_part
 * 
 * @author ruoyi
 * @date 2023-12-27
 */
@ApiModel("编码规则")
public class SysAutoCodePart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编码规则id */
    private Long ruleId;

    /** 分段序号 */
    @Excel(name = "分段序号")
    @ApiModelProperty(value = "分段序号")
    private String partIndex;

    /** 分段类型 */
    @Excel(name = "分段类型")
    @ApiModelProperty(value = "分段类型")
    private String partType;

    /** 分段字符 */
    @Excel(name = "分段字符")
    @ApiModelProperty(value = "分段字符")
    private String partChar;

    /** 输入字符 */
    @Excel(name = "输入字符")
    @ApiModelProperty(value = "输入字符")
    private String inputChar;

    /** 固定字符 */
    @Excel(name = "固定字符")
    @ApiModelProperty(value = "固定字符")
    private String fixChar;

    /** 流水号起始值 */
    @Excel(name = "流水号起始值")
    @ApiModelProperty(value = "流水号起始值")
    private Long seriaStartNo;

    /** 流水号步长 */
    @Excel(name = "流水号步长")
    @ApiModelProperty(value = "流水号步长")
    private Long seriaStep;

    /** 流水号当前值 */
    @Excel(name = "流水号当前值")
    @ApiModelProperty(value = "流水号当前值")
    private Long seriaNowNo;

    /** 创建企业 */
    @Excel(name = "创建企业")
    @ApiModelProperty(value = "创建企业")
    private String createDept;

    public void setRuleId(Long ruleId) 
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId() 
    {
        return ruleId;
    }
    public void setPartIndex(String partIndex) 
    {
        this.partIndex = partIndex;
    }

    public String getPartIndex() 
    {
        return partIndex;
    }
    public void setPartType(String partType) 
    {
        this.partType = partType;
    }

    public String getPartType() 
    {
        return partType;
    }
    public void setPartChar(String partChar) 
    {
        this.partChar = partChar;
    }

    public String getPartChar() 
    {
        return partChar;
    }
    public void setInputChar(String inputChar) 
    {
        this.inputChar = inputChar;
    }

    public String getInputChar() 
    {
        return inputChar;
    }
    public void setFixChar(String fixChar) 
    {
        this.fixChar = fixChar;
    }

    public String getFixChar() 
    {
        return fixChar;
    }
    public void setSeriaStartNo(Long seriaStartNo) 
    {
        this.seriaStartNo = seriaStartNo;
    }

    public Long getSeriaStartNo() 
    {
        return seriaStartNo;
    }
    public void setSeriaStep(Long seriaStep) 
    {
        this.seriaStep = seriaStep;
    }

    public Long getSeriaStep() 
    {
        return seriaStep;
    }
    public void setSeriaNowNo(Long seriaNowNo) 
    {
        this.seriaNowNo = seriaNowNo;
    }

    public Long getSeriaNowNo() 
    {
        return seriaNowNo;
    }
    public void setCreateDept(String createDept) 
    {
        this.createDept = createDept;
    }

    public String getCreateDept() 
    {
        return createDept;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ruleId", getRuleId())
            .append("partIndex", getPartIndex())
            .append("partType", getPartType())
            .append("partChar", getPartChar())
            .append("inputChar", getInputChar())
            .append("fixChar", getFixChar())
            .append("seriaStartNo", getSeriaStartNo())
            .append("seriaStep", getSeriaStep())
            .append("seriaNowNo", getSeriaNowNo())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
